package com.quanyan.stadium.service;


import com.quanyan.stadium.entity.TbPoints;

import java.util.List;

/**
 * Created by lei.w on 16/6/23.
 */
public interface PointsService {

    /**
     * 记录用户积分
     *
     * @param tbPoints
     * @return
     */
    boolean entryUserPoints(TbPoints tbPoints);

    /**
     * 批量记录用户积分
     *
     * @param tbPointsList
     * @return
     */
    void batchEntryUserPoints(List<TbPoints> tbPointsList);

    /**
     * 根据CategoryId与用户is批量获取积分信息
     *
     * @param tbPointsList
     * @return
     */
    List<TbPoints> queryPointsByCategoryIdAndUserIds(List<Integer> tbPointsList, Integer categoryId);

    /**
     * 根据CategoryId与用户is获取积分信息
     *
     * @param uid
     * @param categoryId
     * @return
     */
    Integer getPointsByCategoryIdAndUserIds(Integer uid, Integer categoryId);


}
